function chooseSignMember(){
	AjaxGetSignMembers();
	showContainer("submitQaAuditResultDiv","QaAuditResult_close");
}
function hiddenAuditResultDiv(){
 	$("#SignmembersListDiv").html("");
 	hidenContainer("submitQaAuditResultDiv");
}
function AjaxGetSignMembers(){
 	// Ajax GET  QA Members 
	/*-------------function begin---------------------------*/	
	$.ajax({
			type: "post",
	    	dataType:"xml",
			"url" : "AjaxGetSignMembersServlet",
			//提交的数�
			data: {},
			beforeSend: function(XMLHttpRequest){
				$("#SignmembersListDiv").html("数据加载中……");
            },
            success: function(data, textStatus){
               loadSignMembers(data);
		    },
			complete: function(XMLHttpRequest, textStatus){
			},
			error: function(){
				
			}
	})
	/*-------------function end  ---------------------------*/
 }
 
 function loadSignMembers(xmlData){
 	 $("#SignmembersListDiv").html("");
	 var name       = "";
     var empNo      = "";
     var email  	= "";
     var memberId  	= "";
     $(xmlData).find("Member").each(function(index, element) {
        name       = $(this).children("name").text();
        empNo      = $(this).children("empNo").text();
        email 	   = $(this).children("email").text();
        memberId   = $(this).children("memberId").text();
       $("#SignmembersListDiv").append("<div style='float:left;width:180px;border:1px dotted #CCC;padding:2px;margin:2px;'><input type='hidden' name='sign_memberInfo' value='"+name+empNo+"' /><input type='checkbox' name='sign_memberId' value='"+memberId+"' />"+name+empNo+"</div>");
     });
    $("#SignmembersListDiv").append("<div style='clear:both' ></div>");
 }
 function addSignMembers(){
 	var sign_memberInfo_list = document.getElementsByName("sign_memberInfo");
 	var sign_memberId_list   = document.getElementsByName("sign_memberId");
 	var choose_Ids="";
 	for(i = 0; i < sign_memberId_list.length ; i++){
 		if(sign_memberId_list[i].checked){
 			addSignMemberToShow(sign_memberId_list[i].value,sign_memberInfo_list[i].value);
 			choose_Ids =choose_Ids + sign_memberId_list[i].value + ",";
 		}
 	}
 	if(choose_Ids.length >0){
 		choose_Ids = choose_Ids.substr(0,choose_Ids.length-1);
 	}
 	
 	document.getElementById("singMemberIds").value = choose_Ids;
 	hiddenAuditResultDiv();
 }
 function addSignMemberToShow(memberId,memberInfo){
 	$("#ListDiv_cleanfloat").remove();
 	$("#SignMembersDiv").append(
 	"<div style='float:left;width:200px; margin:5px;padding-top:5px; border:1px dotted #CCC;'>"
       +"<div style='float:left;width:175px;'>"+memberInfo+"</div>"
       +"<div style='float:left;width:25px;cursor:pointer;'><img onclick='DeleteSignMember("+memberId+",this)' class='buttonBcImg' width='20' src='./images/delete.png' /></div>"
       +"<div style='clear:both' ></div>"
  	+"</div><div id='ListDiv_cleanfloat' style='clear:both' ></div>"
 	);
 }
 function DeleteSignMember(memberId,obj){
 	if(!confirm("确定要删除该会签审核员吗?")){
	 	return 
	} 
 	var sign_memberIds = document.getElementById("singMemberIds").value;
 	var sign_memberId_list = sign_memberIds.split(",");
 	var choose_Ids="";
 	for(i = 0; i < sign_memberId_list.length ; i++){
 		if(sign_memberId_list[i] != memberId ){
 			choose_Ids += sign_memberId_list[i] +",";
 		}
 	}
 	if(choose_Ids.length >0){
 		choose_Ids = choose_Ids.substr(0,choose_Ids.length-1);
 	}
 	document.getElementById("singMemberIds").value = choose_Ids;
 	$(obj).parent().parent().remove();
 }